<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<?php include("./template/back/_head.html") ?>
<body>
<article class="cl pd-20">
	<button onclick="history.go(-1)" class="btn">返回</button>
	<form method="post" class="form form-horizontal" id="form-admin-add" action='<?php echo $form_action ?>'>


	<?php foreach($form as $k=>$v){ ?>

		<?php if($v[type]=='text'){ ?>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span><?php echo $v[label_title] ?>：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" value="<?php echo $v[value]  ?>" placeholder=""  name="<?php echo $v[name] ?>">
				</div>
			</div>

		<?php }else if($v[type]=='hidden'){ ?>
			<input type="hidden" name="id" value="<?php echo $v[value] ?>"/>

		<?php }else if($v[type]=='pic_upload'){ ?>
			<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span><?php echo $v[label_title] ?>：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<?php upload_pic($v[name],$v[value]) ?>
			</div>
			</div>

		<?php }else if($v[type]=='select'){ ?>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span><?php echo $v[label_title] ?>：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<?php echo select_html($v[name],$v[value],$v[arrs]) ?>
			</div>
		</div>


		<?php } ?>


    <?php } ?>




		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
				<button onclick="history.go(-1)" class="btn" type="button">返回</button>
			</div>
		</div>
	</form>
</article>

<!--_footer 作为公共模版分离出去-->
<?php include("./template/back/_footer2.html") ?>

<!--/_footer /作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="lib/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript">

</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>